async function main() {
    const nftAuctionAddress = "之前部署的代理地址";

    const NftAuctionV2 = await ethers.getContractFactory("NftAuctionV2"); // 新版本逻辑

    // 升级代理指向新版本逻辑合约
    const upgraded = await upgrades.upgradeProxy(nftAuctionAddress, NftAuctionV2);

    console.log("Contract upgraded to:", upgraded.address);
}
